




# configure retriever
retriever = VectorIndexRetriever(
    index=index,
    similarity_top_k=10,
)

# # configure response synthesizer
# response_synthesizer = get_response_synthesizer()

# assemble query engine
query_engine = RetrieverQueryEngine(
    retriever=retriever,
    # response_synthesizer=response_synthesizer,
    node_postprocessors=[SimilarityPostprocessor(similarity_cutoff=0.4)],
)

# query
response = query_engine.query("第50题是sql答案是什么？")
print(response)